import { defHttp } from "@/utils/http";

export function useSaveFile() {

  /**
   * @description 下载文件
   * @date 14/11/2023
   * @param {string} filePath
   * @returns {*}  {Promise<string>}
   */
  function downloadFile(filePath: string): Promise<string> {
    return defHttp.download(filePath)
  }

  return {
    downloadFile
  }
}